#include "LinkedStorage\\BasicOperation.h"
void test01();
void test01(){
    Link p;
    int num = 10;
    int status = MakeNode(&p,num);
    if(status == OK){
         printf("p->num = %d\n",p->Num);
    }
    else{
        printf("ERROR!");
        return;
    }
}
void test02();
void test02(){
    Link p;
    int num = 10;
    int status = MakeNode(&p,num);
    if(status == OK){
        printf("p->num = %d\n",p->Num);
    }
    else{
        printf("ERROR!");
        return;
    }
    FreeNode(&p);
    if(p == NULL){
        printf("OK!");
        return;
    }
    else{
        printf("ERROR!");
        return;
    }
}
void test03();
void test03(){
    LinkList L;
    IniList(&L);
    if(L.head != NULL){
        printf("ERROR!");
        return;
    }
    else{
        printf("OK!");
        return;
    }
    // control reaches end of non-void function [-Wreturn-type]
    // 意为无返回值
}
void test04();
void test04(){
    LinkList L;
    // IniList(&L);
    ClearList(&L);
    if(L.head == NULL){
        printf("ERROR!");
        return;
    }
    else{
        printf("OK!");
        return;
    }
    // control reaches end of non-void function [-Wreturn-type]
    // 意为无返回值
}


int main(){
    // test01();
    // test02();
    test03();
    // test04();
}
